package com.kandinfo.survey.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kandinfo.base.admin.domain.BaseDomain;

/**
 * Description : 题目关系表domain
 * 
 * @author Patrick-chenziping-TG
 * @version 1.0
 */
@Entity
@Table(name = "question_relation")
public class QuestionRelation extends BaseDomain implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(name = "qid_a")
    private Long qidA; // 题目IDA（暂定病人）

    @Column(name = "qid_b")
    private Long qidB; // 题目IDB（暂定家属）

    @Column(name = "type")
    private String type; // 关联类型：0病人与家属对应的题目

    @Column(name = "status")
    private String status; // 逻辑删除：0 正常使用：1

    public QuestionRelation() {
        super();
    }

    public QuestionRelation(Long qidA, Long qidB, String type, String status) {
        super();
        this.qidA = qidA;
        this.qidB = qidB;
        this.type = type;
        this.status = status;
    }

    public Long getQidA() {
        return qidA;
    }

    public void setQidA(Long qidA) {
        this.qidA = qidA;
    }

    public Long getQidB() {
        return qidB;
    }

    public void setQidB(Long qidB) {
        this.qidB = qidB;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

}
